import 'package:flutter_screenutil/flutter_screenutil.dart';

class AppConfig {

  static const TEST_PROXY_ENABLE = "TEST_PROXY_ENABLE";
  static const TEST_PROXY_HOST = "TEST_PROXY_HOST";
  static const TEST_PROXY_PORT = "TEST_PROXY_PORT";
  //  超时
  static const connectTimeout = 30 * 1000;
  static const receiveTimeout = 30 * 1000;
  /// 对标睿蓝app服务器的三个环境：test、uat、生产环境
  /// 0 - test环境；1 - uat环境；2 - 生产环境
  static const int Environment = 1; //0:uat，1：newuat，2：生产
  /// 是否为debug环境，如果是生产环境，则所以的服务器地址和外部系统均需要使用生产环境的配置
  static const isDebug = Environment != 2;
  /// 按照后端的版本号匹配
  static const appVersion = "2.16.7";

  static const APP_ID = isDebug
      ? (Environment == 0 ? "ceYojNlw" : "ceYojNlw")
      : "fVbEaznM";

  static const baseUrl = isDebug
      ? (Environment == 0
          ? "http://app-uat.livanauto.com/appapi/"
          : "http://app-newuat.livanauto.com/appapi/")
      : "https://app.livanauto.com/appapi/";

  static const vinRedisKey = "car_control_special_vines_key";
  static const mobileRedisKey = "car_control_special_mobiles_key";
}
